package com.hoshiicloud.rbac.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysUsersVO对象", description = "用户")
public class SysUsersVO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	@TableId("id")
	private Long id;

	@ApiModelProperty(value = "组织id")
	@TableField("dept_id")
	private Long deptId;

	@ApiModelProperty(value = "帐号")
	@TableField("username")
	private String username;

	@ApiModelProperty(value = "姓名")
	@TableField("real_name")
	private String realName;

	@ApiModelProperty(value = "头像")
	@TableField("avatar")
	private String avatar;

	@ApiModelProperty(value = "电话")
	@TableField("phone")
	private String phone;

	@ApiModelProperty(value = "邮箱")
	@TableField("email")
	private String email;

	@ApiModelProperty(value = "性别")
	@TableField("sex")
	private Integer sex;

	@ApiModelProperty(value = "状态(0:正常,1:锁定)")
	@TableField("locked")
	private Integer locked;

	@ApiModelProperty(value = "创建时间")
	@TableField("created_time")
	private LocalDateTime createdTime;

	@ApiModelProperty(value = "创建人")
	@TableField("created_by")
	private String createdBy;

	@ApiModelProperty(value = "修改时间")
	@TableField("modified_time")
	private LocalDateTime modifiedTime;

	@ApiModelProperty(value = "修改人")
	@TableField("modified_by")
	private String modifiedBy;


	@ApiModelProperty(value = "角色名称,多个角色以逗号拼接的字符串")
	private String roleName;


	@ApiModelProperty(value = "部门名称")
	private String deptName;

}
